﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
using FireBillBook.Core.Services;
using FireBillBook.Core.Models.Options;
using AutoMapper;

namespace FireBillBook.Core.Extensions
{
    public static class PlatformServiceExtension
    {
        public static IServiceCollection ConfigurePlatformService (this IServiceCollection services, Action<PlatformServiceBuilder> configBuilder)
        {
            var builder = new PlatformServiceBuilder(services);

            configBuilder(builder);

            return builder.Services;
        }
    }
}
